<template>
  <nav class="header">
    <div class="container">
      <div class="logo">
        <svg width="30" height="30" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
          <path d="M12 2L14.5 8H21L16 12L18 18L12 15L6 18L8 12L3 8H9.5L12 2Z" fill="#FFB7C5"/>
        </svg>
        <h1>樱花博客</h1>
      </div>
      <div class="nav-links">
        <router-link to="/" class="nav-item">首页</router-link>
        <router-link to="/articles" class="nav-item">文章</router-link>
        <router-link to="/about" class="nav-item">关于</router-link>
      </div>
    </div>
  </nav>
</template>

<style scoped>
.header {
  background: linear-gradient(135deg, #BBDEFB 0%, #64B5F6 100%);
  color: #1A237E;
  padding: 1rem 2rem;
  box-shadow: 0 4px 15px rgba(255, 183, 197, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo h1 {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 1.8rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.nav-links .nav-item {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #5D4037;
  font-weight: 600;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-links .nav-item:hover {
  background-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
</style>